import request from "@/utils/request";

export function getProceduresByPage(query) {
  return request({
    url: `/system/procedures/getProceduresByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addProcedures(query) {
  return request({
    url: `/system/procedures/addProcedures`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delProcedures(query) {
  return request({
    url: `/system/procedures/delProcedures`,
    method: "post",
    data: query,
  });
}

export function updateProcedures(query) {
  return request({
    url: `/system/procedures/updateProcedures`,
    method: "post",
    data: query,
  });
}

export function getEquipAndProcessByWo(query) {
  return request({
    url: `/system/procedures/getEquipAndProcessByWo`,
    method: "post",
    data: query,
  });
}
